function plotFSPAnalysis( si, fcr )

scrsz = get(0,'ScreenSize');

fsp = 0.000025;

values = zeros([2, 6]);
ticks = zeros( [6, 1] );
tickLabels = cell([1, 6]);

i = 1;

while (fsp < 0.001)
    fileName = sprintf('avgs\\log_%.6f_%.2f_%.1f_AVG.txt', fsp, si, fcr);
    fid = fopen(fileName);
    data = fscanf(fid, '%f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f', [27, Inf]);
    fclose(fid);
    
    if (data(10, size(data, 2)) > data(23, size(data, 2)))
       values(1, i) = data(10, size(data, 2));
       values(2, i) = data(23, size(data, 2));
    else
       values(1, i) = data(23, size(data, 2));
       values(2, i) = data(10, size(data, 2));
    end
    
    ticks(i) = i;
    tickLabels(i) = {sprintf('%.6f', fsp)};
    fsp = fsp * 2;
    i = i + 1;
end

figure('OuterPosition',[scrsz(3)/20 scrsz(4)/20 scrsz(3)*0.9 scrsz(4)*0.9], 'Name', 'Avg group size analysis');
plot(values(1,:), 'Color', [1.0 0.0 0.0]);
hold on;
plot(values(2,:), 'Color', [0.0 1.0 0.0]);
legend('Bigger groups', 'Smaller groups', 'Location', 'EastOutside');
title('Last avg group size');
set(gca,'XLim',[ticks(1) ticks(length(ticks))]);
set(gca,'XTick',ticks);
set(gca,'XTickLabel',tickLabels);
hold off;


end

